package org.jsola.contract.constant;


/**
 * @author JanusMix
 */
public class ContractConstants {

    /**
     * 请求根路径
     */
    public static final String CONTEXT_PATH = "/contract";

    /**
     * 外部地址
     */
    public static final String API_PATH = CONTEXT_PATH + "/api";

    /**
     * 内部地址
     */
    public static final String PROVIDER_PATH = CONTEXT_PATH + "/provider";

    /**
     * 事务beanName
     */
    public static final String TX = "contractTx";

    /**
     * 下载电子合同文件名
     */
    public static final String CONTRACT_CONTRACT_PATH = "contractContractPathServiceImpl";

    /**
     * 合同模板加入个人信息
     */
    public static final String CONTRACT_TEMPLATE_CONTENT_SERVICE = "contractTemplateContentServiceImpl";

    /**
     * SqlSessionFactory beanName
     */
    public static final String SQL_SESSION_FACTORY_BEAN_NAME = "contractSqlSessionFactory";

    /**
     * 合同签署验证码场景
     */
    public static final String SCENE = "sign_certification";

    /**
     * 合同临时存放文件夹
     */
    public static final String TEMP_FOLDER = "/contract/";

    /**
     * 签署状态-待签署
     */
    public static final Integer SIGN_STATUS_READY = 0;
    /**
     * 签署状态-签署完成
     */
    public static final Integer SIGN_STATUS_FINISH = 1;
    /**
     * 签署状态-已过期
     */
    public static final Integer SIGN_STATUS_DELAYED = -1;

    /**
     * 默认签章位置类型-常规
     */
    public static final Integer SEAL_POSITION_TYPE_REGULAR = 1;

    /**
     * 默认签章位置类型-日期
     */
    public static final Integer SEAL_POSITION_TYPE_DATE = 2;

    /**
     * 默认签章位置类型-法人
     */
    public static final Integer LEGAL_PERSON = 3;

    /**
     * 印章状态-已认证
     */
    public static final Integer SEAL_STATUS_VERIFIED = 1;

    /**
     * 印章状态-未认证
     */
    public static final Integer SEAL_STATUS_UNVERIFIED = 0;

    /**
     * 合同状态-待员工签署
     */
    public static final Integer CONTRACT_STATUS_PERSON = 1;

    /**
     * 合同状态-待企业签署
     */
    public static final Integer CONTRACT_STATUS_ENTERPRISE = 2;

    /**
     * 合同状态-已完成
     */
    public static final Integer CONTRACT_STATUS_FINISH = 3;

    /**
     * 合同状态-已撤销
     */
    public static final Integer CONTRACT_STATUS_CANCEL = 4;

    /**
     * 合同状态-签署失败
     */
    public static final Integer CONTRACT_STATUS_FAILED = -1;

    /**
     * 合同过期时间-永久
     */
    public static final Integer EXTERNAL_EXPIRE_DAYS = -1;

    /**
     * 常量值,签署确认时间,华杰专用,用此变量时,公司签署会重新发起合同,替换合同终止时间
     */
    public static final String SIGN_CONFIRM_DATE_REPLACE = "signDateReplace";

    /**
     * 更换后的模板后缀
     */
    private static final String BACK = ".back";

    /**
     * 公众号appid
     */
    public static final String CODE_APPID ="jsola.message.weixin.appid" + BACK;

    /**
     * 合同待签署消息模板id
     */
    public static final String CODE_WAIT_SIGN_TEMP_ID ="weixin_contract.waitSignTempId" + BACK;

    /**
     * 小程序appid
     */
    public static final String CODE_MINI_APPID ="weixin_contract.miNiAppId" + BACK;

    /**
     * 小程序页面路径
     */
    public static final String CODE_MINI_PAGE_PATH ="weixin_contract.miNiPagePath";

    /**
     *合同待签署短信场景
     */
    public static final String SCENE_SIGN_NOTICE_CERTIFICATION = "sign_notice_certification";

    /**
     * 企业单方签署短信场景
     */
    public static final String ENTERPRISE_CONTRACT_NOTICE = "enterprise_contract_notice";


    /**
     * 小程序跳转-合同签署提醒
     */
    public static final String CODE_PATH_CONTRACTSIGN = "jsola.hr.weiXin.path.contractSign";

}
